Fix #warnings taking exponential time to compute

*sigh*
Equivalent from before https://github.com/Shopify/liquid/blob/263e90e7725586b66339eda953c8e6fbc7af8a6f/lib/liquid/block.rb#L71