Added reference counting for on request loading (Mantis 6355)