ast: Add checks for huge arrays to mapping methods

Methods astRebin, astRebinSeq, astResample and astTranGrid now report
an error if an array is specified that has more pixels than can be counted
by a 32 bit int.

Some day, AST needs to be changed to use int64_t instead of int to
count pixels.