rudimentary improvement of BeanUtil to deal with generics