Add transform fn support to one-to-one relations

Fixes https://github.com/korma/Korma/issues/188

Tests are a bit poor but in order to test the transform function I would need to either test it against real db or mock the db calls.