fixed constructors for functional objects (added __host__ modifier)