Handle QAST::BVal properly by always making it emit a reference.

Create all the cuids as empty code refs before deserializing objects.
Fill them in with static versions and update when possible.