extract some key literals as constants

These literals have been selected after inspecting ObjectSpace in
a sample application.