fix(object): use constructor name instead of typeof