Fixes bug related to array decaying and memcpy