fix some string_types checks in traitlets

various bugs inappropriately prohibiting unicode objects

closes #6095