core: check arguments for field arithmetic operations (fix #40)