Add alternate syntax to push & replace methods

Allow to send State object as method param