add PL_op->op_ppaddr substitution optimization
unroll ATTACH_MAGIC macros, as it's used only once now
update comments for different parts of logic
add opcode optimizer teardown tests
allow to disable entersub optimization by %ENV entry