specifying the type of various references for perls pre-5.14.