Little refinements in SReferenceCreator
Fix null SModelReference in java stubs