Added option for hiding some properties when converting an object to array.