Use bytes pattern for var extraction. Fixes #17.