Add method `GetAllAttributes`.

This method returns all attributes which the object has in an dictionary
which is safe for modifications.