Consistent scripting of quoted ids and ANSI nulls

Fixes #16.