[BUGFIX] Only resolve references from block node

Fixes recursive resolving.
Adds resolving for options.
[BUGFIX] Resolve options and not styles in option getter
Adds new tests for styles/options parsing