added helper function for determing whether a given constant is packed or not.