Yes, LookupSerializer is probably a poor choice as a name because, while
seemingly innocuous, it doesn't communicate the fact that it has an
unexpected side-effect of mutating internal state such that you can't
change the behavior later. We will try and address this in future versions.
For now, you simply need to make sure that you call RegisterSerializer at
application startup/initialization before any serialization is performed.