Brace for source imcompatible changes in Scala around Primitives.

The constants and predicates about primitive codes are being
moved from the scalaPrimitives object (through its parent trait
ScalaPrimitives) to the ScalaPrimitives companion object.

This commit makes our codebase cross-source compatible with the
compiler before and after these changes.