fixed unused warnings
added dtype caching
changed vector type integration