fixes #380 #241: column reordering not working if pinning enabled

Fixes #380 and #241 

Here's a plunker based on the one in #380 to demonstrate the fix:

http://plnkr.co/edit/WOBAP8?p=preview