Fix critical bug in Db/DbQuery classes

recentrly found bug with &$referenced value reset
 - replace functions and portions of code related to this functional with
   new function call `attachArrayKeyColon` - does exacly same thing
   without using &$reference value pass