Fixes for date query problems in AWS::Record.