failing test for #29
fix the simple case for #29
fix casting to mixed types in iterables
Merge pull request #30 from Calama/attrdict_casting

Attrdict casting