SnapToGrid doesn't discard higher dimensions
Changed Z() function to return NULL if requested dimension is not available