Check layer sizes are integer. Fixes #15