Adding QA test for generator_matrix_encoder.

Also fixing some bugs in the generator_matrix_encoder_ss block code.