also accepting standard dicts (fixes #94)

Please be aware that the standard dicts do not preserve the order of
the layers. The usage of OrderDict is recommended.