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)