Added ToJSONFilter instances for a -> [a], a -> IO [a].

These use generics and will be slower, but are needed for
backwards compatibility.
Version bump to 1.12.1.