Fixing crashes, reducing allocations

In some circumstances, a crash could occur when Graphic was disposed but
not still part of render chain. Also, reduced allocations in getBounds
from 6 to 2