Made refcounting in SGObject use the RefCount class
Merge pull request #1406 from van51/feature/refcount

Made refcounting in SGObject use the RefCount class