Fixed a bunch of schema handling errors introduced by hasty typing.
Fixed detection of M2M fields in alter_field.