Added type information to applied styles calculation

The returned object from the applied styles calculation did not have
specific type information for Closure Compiler so I have added some
typedefs that describe the returned object.
Merge pull request #675 from satsuper/applied-styles

Added type information to applied styles calculation