Fixed in https://github.com/Shopify/liquid/commit/07f7d63beaaa62e3e6dbde4401cba710c17507ad, sorry for merging too early.