refactor(parse-options): add helper methods to parse-options
refactor(typeahead): move ngOptions handling to $typeahead factory