Allow to pass options to associations

Closes #331