handle req.body key referencing array or object

fixes #5