Added proper dispose handling for referenced GitObjects