cupid: add shape and nclumps parameters to extractclumps

This shoud have been in a previous commit (0fdfe05f7ca38...) that
added these parameters to the c function, but I forgot to add
cupid.ifd.in to the commit.