Refactored RuntimeStatistics internals. Added more record-level performance counters.

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/trunk@59953 65644016-39b1-43b1-bf79-96bc8fe82c15
Fixed bug CORE-4510 : AV in validation is possible

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/trunk@59954 65644016-39b1-43b1-bf79-96bc8fe82c15