Fix Month Arithmetic Functions and INTERVAL Handling

Fixed the addMonths and subtractMonths functions and the arithmetic for INTERVAL n MONTH in cases when the result has the previous year.