Adjustable precision for nn checks

Make precision in totem.nn.checkTypeCastable and totem.nn.checkSerializable a parameter.