encode_value now checks $ref =~ /SCALAR/ instead of eq "SCALAR"
References to scalars will be encoded as Booleans. Tests/POD also added.
Refs to scalars encode as Booleans: CPAN v0.35