Fixed sequence handling of null and mixed types. Fixes #1