Make getMonthDays 10x faster

Writing individual elements of a vector kills performance. This doesn't have much effect on current PALS code, but it makes the function more broadly useful.