Ktdreyer minitest

There is no progress in https://github.com/Shopify/liquid/pull/358, but I would like to merge it. This PR addresses the code review comments.

@arthurnn @jasonhl, could you review this? Please read the original PR description first so you know what's up with the whole global filter thing.

cc @dylanahsmith @ktdreyer