Custom transformations should throw on main thread.
Merge pull request #355 from square/dimitris/throw-to-main

Custom transformations should throw on main thread.