Better parsing and added support to "select" element

Better parsing and added support to "select" element.

Now parses arrays with dictionaries.