Fix emitter to allow traversal of M2M fields.