zop.js refactoring

Add inheritance method (in case of this prototype inheritance changed).
Little optimization of other constructions.