Prevent "no-symbol does not have an owner" when using MappedTo.

Fixes issue #590. Test in RelationalMapperTest.mappedToMacroCompilerBug
(compile-time only; the test is not executed)

Thanks to @xeno-by for narrowing this down. Review by @cvogt