Perpare compiler state before each compilation pass

This changes Augmented Types back to its previous strategy of
preparing compilation state before each compilation pass, instead
of keeping a long-running count of number of functions and classes
encountered. This protects against certain optimizations that
opcode caches can make involving shuffling things around in Zend's
function and classes tables.
Bump bugfix version to v0.6.5