added JSON tests and operator eq for ext. type, class, filed, class method. Also minor code improvements