First draft of equals method that includes object and array comparison.