1) Use "nullvector". But you're right, there's no reason why effect_layer requires a vector - this restriction will be removed.

2) There must be some cause of that problem in the rest of the code. We'd need to look into an example.