Calendar placement and display fixed (issue #400)

When changing singleDatePicker from true to false (and vice versa) after
datepicker is initialized.