add test and fix for reusing statements with different number of bind variables