Fixed issue with WHILE loop detection.
Added support for serializing for blocks.
Added support for WHILE, FOR, and ENHANCED FOR Loop serialization.