include SGRefObject before SGObject for swig