Style binding issues

These changes make the style binding a but more robust. It should close #972, #231, and #455.