Impl factory-constructor for CodeFilePtr

The main job of the CodeFilePtr constructor is to initialize the fPtr
pointer to point to a valid subclass object.  The constructor actually
creates this subclass object as well.  To determine the type of
subclass needed, the constructor checks the association of the file
using Util.h's checkAssoc().