Cleaned-up primitiveArray methods.

Added test t_153 and made it pass identially in
JS and C backends.  In the process added several missing
asDebugString methods to gracelib.c, and cleaned-up
and made uniform asString and asDebugString.