fix($stickyState): Fix states not exiting when the state parent attribute is used instead of the dotted notation

Using the parent attribute instead of the dotted notation breaks exiting the states because StickyStateProvider.stateExiting only expects state names like ```parent.child```. This can easily be fixed by using the states ```includes``` attribute instead.

I've added a test that fails without the fix and passed with it. Please have a look at it. I couldn't use the ```pathFrom``` helper function as it too only works with the dotted notation.