Add missing code to support global/half memory types