Range type fixes

This pull request resolves #281.

It does validation in the `StaticInterface.clean()` method and in the validator for `DynamicInterface.range` and raises a ValidationError if the interface was placed in a range of the wrong type (static or dynamic).