Update object.class.js

Fix opacity for groups.
Before it was working just in simple situation, now it should be ok both in path-group and in normal groups and nested groups.