Implements missing FlattenerLayer functions.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
Merge pull request #848 from axeldavy/FlattenerLayerComplete

Implements missing FlattenerLayer functions.