Moulds for making shaped articles with undercut recesses