improve event dnd/resize tests by type-checking for all arguments
make arguments and this more consistent in event dnd/resize handlers