nunaliit2-js: Fix issue where state styles are not merged in the right
order.

Issue #154