New exportable functions: is_literal_value($) and is_plain_value($)

Ported from DBIC
Fix -values not being handled properly with NULLs