bugfix on determine_size for raw arrays