Revert "[DF-5527] Improvements for ScopedPtr and RefPtr"

This reverts commit c0d600e418ef7b702d38170821c4935d38b498f4.
Merge branch 'development' of https://github.com/dava/dava.framework into development