Avoid holding on to stale tag classes

Liquid's `Template.register_tag` keeps a reference to the class used for each tag in a hash. While this is fine for production use, Rails redefines constants when reloading classes which causes any reloaded tag classes to break.

Ping @byroot