Correct setting of mpointer #'make-foreign-array-from-mpointer and move foreign-metadata to foreign-array.