Memory leak fixes

Fixed a couple areas of memory leaks. One involves adding a reference counter for FastCallRange objects