All class members are moved to be object members

Previous implementation may causes several issues with referencing of
the same values in case of multiple objects.