Changed memory_types to be around the array dimensions, made assignment work with this