Fix #2042 (pinning): Pinning column menu item duplication on resize

I changed so that the pinning feature now checks if it has already added a menu item to the builder, which will prevent duplicate menu items. Also added a utility function that assist me in this solution. I wrote a unit test for the utility function and an e2e test for the pinning and column resize compatibility in the 401 All Features tutorial.