plugins: DemandEnv - fix shape polling

there is no notion of NaN in integers.

Signed-off-by: Tim Blechmann <tim@klingt.org>
plugins: GrainBuf - catch both inf and NaN phase arguments

fixes #352

Signed-off-by: Tim Blechmann <tim@klingt.org>