Add body of randomizing tests. Literals now separate functions.

Add beginning chars for literals in expectations.txt, add separate
functions for literals (literal_true etc.) so that we can effectively
randomly create characters.
Bug fixes related to randomtest.