Precursors to human theory of mind and action understanding abilities of dogs (Canis familiaris).