function sameType(a, b) {
  a = Object.prototype.toString.call(a);
  b = Object.prototype.toString.call(b);
  return a == b;
}
Check that a / b have the same type.

@param {Object} a
@param {Object} b
@return {Boolean}
@api private