Added "endsWith", "startsWith", small improvements
* Added "endsWith" and "startsWith"
* Fixed type definitions for @throws
* Added type checking for property names for hasOwnProperty and hasProperty predicate