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.
Merge pull request #1672 from asturur/opacity-fix

Fix opacity for groups and nested groups