Unbox vector/matrix
Un-hardcode chunk size