NuSTAR observations of Mrk 766: distinguishing reflection from absorption