FIX: avoid compiling debug function in non-debug mode.
FIX: minor comment fix.
FEAT: optimized speed of TO/THRU when having a literal value as argument.
FIX: wrong exit state for NONE.
FIX: minor code improvements.