Fixed meshgrid to preserve dtype of arguments.

See bottom of github issue #5297 "Inconsistent casting behavior in array-scalar vs array-array multiplication"