Realised there is no need to match on type as the
`to_binary/1` function converts the types we care
about. Added a test for `qs/2`.