"'Layr', 'Lr16' and 'Lr32' start at See Layer info. " writted in http://www.adobe.com/devnet-apps/photoshop/fileformatashtml/#50577409_pgfId-1031423. But you write
if %w(Lr16 Lr32 Mt16).include?(key)
in layer_mask.rb.
I think something may be wrong here.
Thanks :)