First rough version of <select> and a few new value types

- also a bug fix in register_value_type