Copy metatable as well during deep copying
+1 for x axis is missed in getChunk()
Fix typo and return sizeY.