It shouldn't be possible to stack boats (or even other unstackable items - not tested). However, if you're trading a boat with a villager (in my example the Fisherman) and have more than one in your inventory and click on the boat icon on the left trades-menu, the boats will stack.
Duplicate of MC-147431