Added correct handling for constant variables

No true reference count should ever equal 0. This lets
a check for 0 be performed to prevent faulting when the
reference counter is in the rodata segment. The memory
will still have to be loaded (possible missing a cache) but
this only hurts the (hopefully) uncommon case of const variables.