Fixed behaviour for mapping vs sequence
The use of _is_sequence() is convenient but not optimal (not basestring
implicitly tested twice)