Fix quasiqoute hygiene

Added full qualifiers to `From`, `To` and `Format` in quasiqoutes. Without the change, the `gen` macros expect those identifiers to be in scope.